﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib.DFDShapes
{
    public class DFDArrowShape : MyDiagramShape
    {
        public DFDArrowShape()
        {
            // TODO: Complete member initialization
            lstShapes = new List<MyShape>();
            //lstShapes.Add(new MyArcShape((float)Math.PI,(float)(0)));
            lstShapes.Add(new MyArcShape((float)180, 180));
        }

        public override MyShape Clone()
        {
            return new DFDArrowShape();
        }

        public override MyShape CloneByDiagramFactory(DiagramFactorys.MyDiagramFactory factory)
        {
            MyShape newShape = factory.GetArrowShape();
            newShape.Copy(this);
            return newShape;
        }

        public override void ResetChildPoint()
        {
            lstShapes[0].SetStartPoint(startX, startY);
            lstShapes[0].SetEndPoint(endX, endY);
        }


    }
}
